<include file="Public:header"/>

<div class="row">
    <div class="col-md-6">
        <div class="table-tit">推广员类型列表<a href="{:U('Sett/typeadd')}" class="pull-right">新增</a></div>
        <table class="table table-bgfont">
            <tr>
                <th>ID</th>
                <th>类型名称</th>
                <th>代码</th>
                <th>状态</th>
                <th>管理</th>
            </tr>
            <volist name="data.data" id="v">
                <tr>
                    <td>{$v.sat_id}</td>
                    <td>{$v.sat_name}</td>
                    <td>{$v.sat_para}</td>
                    <td>
                        <if condition="$v.sat_status eq 1">
                            <button type="button" class="btn btn-success btn-xs">使用中</button>
                            <else/>
                            <button type="button" class="btn btn-danger btn-xs">停止</button>
                        </if>
                    </td>
                    <td>
                        <a href="{:U('Sett/typeedit','sit='.$v['sat_id'])}">
                            <button type="button" class="btn btn-xs btn-primary">编辑</button>
                        </a>
                        <a href="{:U('Sett/index')}">
                            <button type="button" class="btn btn-xs btn-danger">删除</button>
                        </a>
                    </td>
                </tr>
            </volist>
            <tr>
                <td colspan="5">{$data.page}</td>
            </tr>
        </table>
    </div>
</div>

<include file="Public:footer"/>